<?php echo form_open($this->curl . '/create/', 'id="myform" name="myform" autocomplete="off"')?>
<br />
<table class="nostyle" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
	<td>
		<?php echo $this->validation->error_string?>
		<table class="nostyle forma" width="100%" border="0" cellpadding="3" cellspacing="0">
		<tr>
			<th><?php $this->load->view('_elements/obligatory');?><?php echo $this->liter_model->fields['author']?></th>
			<td><div class="input_300"><?php echo form_input('author', $this->validation->author, 'class="input-text"')?></div></td>
		</tr>			
		<tr>
			<th><?php $this->load->view('_elements/obligatory');?><?php echo $this->liter_model->fields['name']?></th>
			<td><div class="input_300"><?php echo form_input('name', $this->validation->name, 'class="input-text"')?></div></td>
		</tr>
		<tr>
			<th><?php $this->load->view('_elements/obligatory');?><?php echo $this->liter_model->fields['description']?></th>
			<td><div class="input_300"><?php echo form_input('description', $this->validation->description, 'class="input-text"')?></div></td>
		</tr>	
		<tr>
			<th><?php $this->load->view('_elements/obligatory');?><?php echo $this->liter_model->fields['section']?></th>
			<td><div class="input_300"><?php echo form_dropdown('section', $this->sections_model->getSelectOptions('all'), array($this->validation->section), 'id="id_sections" onchange="loadSubsections($(\'#id_sections\').val(), \'place_subsections\')"', TRUE)?></div></td>
		</tr>
		<tr>
			<th><?php $this->load->view('_elements/obligatory');?><?php echo $this->liter_model->fields['subsection']?></th>
			<td><div class="input_300" id="place_subsections"><?php echo form_dropdown('subsection', $this->sections_model->getSelectOptions(), array($this->validation->subsection), null, TRUE)?></div></td>
		</tr>
		<tr>
			<th><?php $this->load->view('_elements/obligatory');?><?php echo $this->liter_model->fields['publishing_house']?></th>
			<td><div class="input_300"><?php echo form_input('publishing_house', $this->validation->publishing_house, 'class="input-text"')?></div></td>
		</tr>
		<tr>
			<th><?php $this->load->view('_elements/obligatory');?><?php echo $this->liter_model->fields['year']?></th>
			<td><div class="input_300"><?php echo form_input('year', $this->validation->year, 'class="input-text"')?></div></td>
		</tr>
		<tr>
			<th><?php $this->load->view('_elements/obligatory');?><?php echo $this->liter_model->fields['mark']?></th>
			<td><div class="input_300"><?php echo form_dropdown('mark', $this->config->item('mark'), array($this->validation->mark), null, TRUE)?></div></td>
		</tr>
		<tr>
			<td></td>
			<td>			
				<input name="edit" type="submit" class="btn btn_save" id="submit" value="<?php echo T_('Submit')?>" />
				<input name="reset"  type="reset"  class="btn btn_clear" id="reset" value="<?php echo T_('Reset')?>" onclick="$('#create_form input[type=text]').val('');" />
			</td>
		</tr>
		
		</table>
	</td>
</tr>
</table>

<?php echo form_close()?>